﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Deliversarly.aspx.cs" Inherits="qy_55tuan_Admin_Deliversarly" %>

<%@ Register Src="~/Admin/Banner.ascx" TagName="TogoBanner" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/Admin/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register Src="~/Admin/Adleft.ascx" TagName="left" TagPrefix="uc3" %>
<%@ Register TagPrefix="epc" Namespace="Hangjing.Control" Assembly="Hangjing.Control" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>配送员薪资结算-<%=  WebUtility.GetMyName() %></title>
    <link href="../css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../css/menu.css" rel="stylesheet" type="text/css" />
    <link href="../css/boxes.css" rel="stylesheet" type="text/css" />
    <link href="../css/divDialog.css" rel="stylesheet" type="text/css" />
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="../css/iestyles.css" media="all" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="../css/below_ie7.css" media="all" />
    <![endif]-->
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="../css/ie7.css" media="all" />
    <![endif]-->

    <script type="text/javascript" src="../javascript/DatePicker/WdatePicker.js"></script>

    <script src="../javascript/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../javascript/Common.js" type="text/javascript"></script>

    <script src="../javascript/ScollTop.js" type="text/javascript"></script>

    <script src="../javascript/ShowDivDialog.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        $(window).load(function () { $("#loading-mask").hide(); });
        AddLoadFun(init);

        var Table;
        function init() {
            Table = new CheckTable("grid_table");
            $(".grid_data tr").mouseover(function () { $(this).addClass("on-mouse"); }).mouseout(function () { $(this).removeClass("on-mouse"); });
            $(".grid_data tr:even").addClass("even pointer");
            $("#loading-mask").hide();
        }

        function Del() {
            var nums = Table.GetChecks();
            if (nums == undefined || nums.length == 0) {
                alert("请选择要删除的配送员信息!");
                return false;
            }
            document.getElementById("hidDels").value = ArrayToString(nums);
            return DelConfirm();
        }

        function jDel() {
            var nums = Table.GetChecks();
            if (nums == undefined || nums.length == 0) {
                alert("请选择要操作的记录!");
                return false;
            }
            document.getElementById("hidDels").value = ArrayToString(nums);
            return true;
        }

        function loading() {
            $("#loading-mask").show();
        }

        function loadover() {
            $("#loading-mask").hide();
        }

        //$(document).ready(function() { WhitchActive(3) });    
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="hidDels" runat="server" />
        <uc1:TogoBanner ID="TogoBanner1" runat="server" />
        <!--加载中显示的div-->
        <div id="loading-mask">
            <p class="loader" id="loading_mask_loader">
                <img src="../images/ajax-loader-tr.gif" alt="加载中..." /><br />
                请等待...
            </p>
        </div>
        <epc:Hint ID="Hint1" runat="server" HintImageUrl="images/Control" />
        <div class="wrapper">
            <!--banner start-->
            <!--banner end-->
            <!--center start-->
            <div class="middle" id="anchor-content">
                <div id="page:main-container">
                    <div class="columns ">
                        <div class="side-col" id="page:left">
                            <uc3:left ID="left1" runat="server" />
                        </div>
                        <div class="main-col" id="content">

                            <div class="main-col-inner">
                                <div id="divMessages">
                                </div>
                                <fieldset class="AdminSearchform">
                                    <legend>查询条件 </legend>
                                    <table border="0" cellpadding="0" cellspacing="0" style="margin-left: 10px; line-height: 35px;">

                                        <tr>
                                            <td>时间：
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" CssClass="inputclass" ID="tbStartTime" onfocus="WdatePicker({readOnly:true})"
                                                    Width="85"></asp:TextBox>
                                                <asp:Label runat="server" ID="lbTemp" Text="至"></asp:Label>
                                                <asp:TextBox runat="server" ID="tbEndTime" CssClass="inputclass" onfocus="WdatePicker({readOnly:true})"
                                                    Width="85"></asp:TextBox>&nbsp;


                                                <label>月份</label>

                                                <asp:TextBox runat="server" CssClass="inputclass" ID="tbStartmounth" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM'})"
                                                    Width="75"></asp:TextBox>
                                                <asp:Label runat="server" ID="Label1" Text="至"></asp:Label>
                                                <asp:TextBox runat="server" ID="tbEndmounht" CssClass="inputclass" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM'})"
                                                    Width="75"></asp:TextBox>&nbsp;

                                                 

                                            </td>
                                            <td class="filter-actions a-right">&nbsp;
                                            </td>
                                        </tr>

                                          <tr>
                                            <td >
                                              
                                            </td>
                                            <td style=" vertical-align: middle;">

                                                <asp:CheckBox runat="server" ID="cbremovedel" RepeatDirection="Horizontal" Text="排除已经删除人员">
                                                </asp:CheckBox>
                                            </td>
                                                <td class="filter-actions a-right">&nbsp;
                                            </td>
                                        </tr>


                                        <tr>
                                            <td>姓名：
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbKeyword" runat="server" CssClass="j_text" Width="120px" />&nbsp;

                                                     <asp:DropDownList ID="ddlcity" runat="server" CssClass="j_select" Width="100" AppendDataBoundItems="true">
                                                         <asp:ListItem Value="0">所有城市</asp:ListItem>
                                                     </asp:DropDownList>



                                                &nbsp;
                                                          <asp:DropDownList ID="ddlGpsIMEI" runat="server" CssClass="j_select" AppendDataBoundItems="true">
                                                              <asp:ListItem Value="-1">群组</asp:ListItem>
                                                          </asp:DropDownList>


                                                &nbsp;
                                                          <asp:DropDownList ID="ddreveint1" runat="server" CssClass="j_select" AppendDataBoundItems="true">
                                                              <asp:ListItem Value="-1">岗位</asp:ListItem>
                                                              <asp:ListItem Value="0" Text="配送员"></asp:ListItem>
                                                              <asp:ListItem Value="10" Text="组长"></asp:ListItem>
                                                              <asp:ListItem Value="20" Text="副主管"></asp:ListItem>
                                                              <asp:ListItem Value="30" Text="主管"></asp:ListItem>
                                                              <asp:ListItem Value="40" Text="副经理"></asp:ListItem>
                                                              <asp:ListItem Value="50" Text="经理"></asp:ListItem>

                                                          </asp:DropDownList>

                                                &nbsp;

                                                         <asp:DropDownList ID="ddlpost" runat="server" CssClass="j_select" AppendDataBoundItems="true">
                                                             <asp:ListItem Value="-1">职位</asp:ListItem>
                                                             <asp:ListItem Value="100" Text="全职"></asp:ListItem>
                                                             <asp:ListItem Value="90" Text="兼职"></asp:ListItem>

                                                         </asp:DropDownList>

                                                &nbsp;
                                                         <asp:DropDownList ID="ddlgrade" runat="server" CssClass="j_select" AppendDataBoundItems="true">
                                                             <asp:ListItem Value="-1">等级</asp:ListItem>
                                                             <asp:ListItem Value="1" Text="1星"></asp:ListItem>
                                                             <asp:ListItem Value="2" Text="2星"></asp:ListItem>
                                                             <asp:ListItem Value="3" Text="3星"></asp:ListItem>
                                                             <asp:ListItem Value="4" Text="4星"></asp:ListItem>
                                                             <asp:ListItem Value="5" Text="5星"></asp:ListItem>

                                                         </asp:DropDownList>

                                                &nbsp;
                                                         <asp:DropDownList ID="ddlcarower" runat="server" CssClass="j_select" AppendDataBoundItems="true">
                                                             <asp:ListItem Value="-1">车辆所有人</asp:ListItem>
                                                             <asp:ListItem Value="0" Text="自带"></asp:ListItem>
                                                             <asp:ListItem Value="1" Text="公司"></asp:ListItem>


                                                         </asp:DropDownList>

                                                &nbsp;

                                                         <asp:DropDownList runat="server" ID="tbcartype">
                                                             <asp:ListItem Value="-1">车辆</asp:ListItem>
                                                             <asp:ListItem Value="电动车" Text="电动车"></asp:ListItem>
                                                             <asp:ListItem Value="摩托车" Text="摩托车"></asp:ListItem>
                                                             <asp:ListItem Value="面包车" Text="面包车"></asp:ListItem>
                                                             <asp:ListItem Value="小车" Text="小车"></asp:ListItem>
                                                         </asp:DropDownList>
                                                &nbsp;

                                            </td>
                                            <td class="filter-actions a-right">
                                                <asp:Button runat="server" ID="btSearch" class="form-button" Text="搜索" OnClick="btSearch_Click" />&nbsp;&nbsp;
                                              
                                              <asp:Button runat="server" ID="Button3" class="form-button" Text="导出" OnClick="btExport_Click" />

                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>

                                <fieldset class="AdminSearchform">
                                    <legend>统计</legend>
                                    <div style="clear: both; padding: 10px;">

                                        <asp:Repeater ID="rptsum1" runat="server">
                                            <ItemTemplate>
                                                <span>配送费:<span id="" style="margin-left: 20px; font-weight: bold; color: Red"><%# Eval("shopdiscountmoney")%></span></span>
                                                <span style="margin-left: 20px;">工资:<span id="lbsalary" style="margin-left: 20px; font-weight: bold; color: Red"><%# Convert.ToDecimal(Eval("salary")).ToString("0")%></span>元</span>
                                                <span style="margin-left: 20px;">盈余:<span id="lbdeliverprofit" style="margin-left: 20px; font-weight: bold; color: Red"><%# Convert.ToDecimal(Eval("deliverprofit")).ToString("0")%></span>元</span>


                                                <span style="margin-left: 20px;">全职:<span  style="margin-left: 20px; font-weight: bold; color: Red"><%# Eval("UserName")%></span>人</span>
                                                <span style="margin-left: 20px;">兼职:<span style="margin-left: 20px; font-weight: bold; color: Red"><%# Eval("Password")%></span>人</span>
                                            </ItemTemplate>
                                        </asp:Repeater>

                                    </div>
                                </fieldset>




                                <div class="scott">
                                    <webdiyer:AspNetPager CssClass="anpager" ID="AspNetPager1" runat="server" Width="100%"
                                        CustomInfoHTML="共有记录 <font>%RecordCount%</font> 条 当前为 <font>%CurrentPageIndex%</font>/<font>%PageCount%</font> 页"
                                        HorizontalAlign="Right" ShowCustomInfoSection="Left" CustomInfoTextAlign="Right"
                                        CustomInfoSectionWidth="27%" ShowPageIndexBox="Always" PageIndexBoxType="TextBox"
                                        TextBeforePageIndexBox="转到 " OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxClass="flattext"
                                        ShowPageIndex="True" PageSize="15" SubmitButtonClass="flatbutton" SubmitButtonText="GO"
                                        TextAfterPageIndexBox=" 页 " Wrap="False">
                                    </webdiyer:AspNetPager>
                                </div>
                                <div id="sales_order_grid_massaction" style="clear: both;">
                                </div>
                                <div class="grid">
                                    <div class="hor-scroll">
                                        <table class="data" cellspacing="0" id="grid_table">

                                            <thead>
                                                <thead>
                                                    <tr class="headings">
                                                        <th width="3%">
                                                            <span class="nobr">&nbsp;</span>
                                                        </th>
                                                        <th>
                                                            <span class="nobr"><a class="not-sort" href="#" name="real_order_id" title="asc"><span
                                                                class="sort-title">姓名</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">城市</span></a></span>
                                                        </th>
                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">群组</span></a></span>
                                                        </th>
                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">岗位</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">职位</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">车辆所有人</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">车辆</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">级别</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">配送费</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">提成比例</span></a></span>
                                                        </th>


                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">基本工资</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">提成</span></a></span>
                                                        </th>

                                                        <th width="6%">
                                                            <span class="nobr"><a class="not-sort" href="#" name="store_id" title="asc"><span
                                                                class="sort-title">工资合计</span></a></span>
                                                        </th>


                                                        <th class="no-link last" width="6%">
                                                            <span class="nobr" style="padding-top: 3px; *padding-top: 5px;">盈余</span>
                                                        </th>
                                                    </tr>
                                                </thead>
                                                <tbody class="grid_data">
                                                    <asp:Repeater ID="rtpGifts" runat="server" OnItemCommand="rtpGifts_ItemCommand">
                                                        <ItemTemplate>
                                                            <tr class="pointer" title="">
                                                                <td class="" width="20px">
                                                                    <input class="massaction-checkbox" name="" type="checkbox" value='<%# Eval("DataId") %>'>
                                                                    </input>
                                                                </td>
                                                                <td class="">
                                                                    <%# Eval("Name")%>
                                                                </td>

                                                                <td class="">


                                                                    <%# Eval("cityname")%>

                                                                </td>
                                                                <td class="">
                                                                    <%# Eval("Groupname")%>
                                                                </td>

                                                                <td class="">
                                                                    <%# Hangjing.WebCommon.WebHelper.Turntation( Eval("reveint1"))%>
                                                                </td>

                                                                <td class="">
                                                                    <%# Hangjing.WebCommon.WebHelper.TurnPost( Eval("post"))%>
                      
                                                                </td>
                                                                <td class="">

                                                                    <%# Hangjing.WebCommon.WebHelper.TurnCarOwner( Eval("carower"))%>

                                                                    
                                                                </td>
                                                                <td class="">
                                                                    <%# Eval("cartype")%>
                                                                </td>
                                                                <td class="">
                                                                    <%# Eval("grade")%>星
                                                                </td>
                                                                <td class=""><%# Eval("shopdiscountmoney")%>
                                                                </td>
                                                                <td class="">
                                                                    <%# Eval("reveint3")%>%
                                                                </td>

                                                                <td class="">
                                                                    <%# Eval("reveint2")%>元
                                                                </td>

                                                                <td class=""><%# Convert.ToDecimal(Eval("cut")).ToString("#0.0")%>元
                                                                </td>

                                                                <td class=""><%# Convert.ToDecimal(Eval("salary")).ToString("#0.0")%>元
                                                                </td>

                                                                <td class=" last" align="center">


                                                                    <%# Eval("deliverprofit")%>元

                                                                </td>
                                                            </tr>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="scott">
                                    <webdiyer:AspNetPager runat="server" ID="AspNetPager2" CloneFrom="AspNetPager1">
                                    </webdiyer:AspNetPager>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
                <!--foot start-->
                <uc2:Foot runat="server" ID="FootUC" />
                <!--foot end-->
            </div>
    </form>
</body>
</html>
